apply() ignores the lambda expression result. Instead, apply() returns the object that you called apply() on.

As a result, we can simplify the previous lesson's code, by using apply() as part of our variable initializer.

You can learn more about this in:
Run Edit